package com.violet.springaop.setinjection;

/**
 * @author LiChaochao
 * @Date 2021/10/21 14:08
 * @Description set注入循环依赖演示
 *
 * bean单例，支持循环依赖；
 * bean原型prototype，不支持循环依赖，会报错
 */
public class ClientSet {

    public static void main(String[] args) {
        A a = new A();
        B b = new B();

        b.setA(a);
        a.setB(b);
    }
}
